It indicates that there was no other solution or alternative.
और कोई विकल्प नहीं था
English Usage: There was nothing for it but to admit defeat.
Hindi Usage: हार मानने के अलावा और कोई चारा नहीं था।